﻿@using Kugar.MVC.MobileUI.WeUI
@using Kugar.MVC.MobileUI.WeUI.Enum
@using Kugar.MVC.MobileUI.WeUI.Helpers
@using Kugar.MVC.MobileUI.WeUI.Helpers.Forms
@{
    Layout = this.DefaultLayoutPath;
}

@(WebUI.CommonCtrl().Swiper().Images(new[] {"https://www.wikihow.com/images_en/thumb/9/97/Insert-Spaces-in-HTML-Step-1.jpg/v4-728px-Insert-Spaces-in-HTML-Step-1.jpg.webp",
                                           "https://www.wikihow.com/images_en/thumb/9/97/Insert-Spaces-in-HTML-Step-1.jpg/v4-728px-Insert-Spaces-in-HTML-Step-1.jpg.webp" }).Render())

@(WebUI.CommonCtrl().GridLayout()
      .AddItem(x => x.Title("sss").Badge(20).Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .AddItem(x => x.Title("sss").Icon("http://ylfile.b0.upaiyun.com/WeUI/Content/images/icon_nav_button.png"))
      .Render())

@using (var frm = WebUI.Form().Css("weui-grids").Render())
{
    @frm.AddTextBox().Placeholder("test").Value("ssss").Name("textbox").Label("ssss").Render()

    @frm.AddDatePicker().Tips("提示:sdddddddddddddddddddddddddddd").Type(DatePickerTypeEnum.Date).Name("d1").Value(DateTime.Now).Label("d1").Render()

    @frm.AddSelector().Options(new[]
                               {
                                   new SelectorItem("dddd", "ppp"),
                               }).Label("ddd").Render()

    @frm.AddSwitchButton().Name("sss").Label("SwitchButton").Checked(true).Render()

    @frm.AddCounter().CounterLabel("ssss").Label("Counter").Value(20).Render()

    @frm.AddMobileVCode().Label("mobilevcode").Value("sss").Render()

    @frm.AddVCode().Label("vcode").Value("555").Render()

    @frm.AddCitySelector().Label("城市").PickerTItle("ppppp").Value("北京 北京市 东城区").Render()

    @frm.AddRadioList().Label("单选").Name("ssss").Options(new[]
                                                         {
                                                             new SelectorItem("ooo", "1"),
                                                             new SelectorItem("44", "44"),
                                                         }).Render()

    @frm.AddCheckBoxList().Label("多选").Name("ssss2").Options(new[]
                                                             {
                                                                 new SelectorItem("ooo", "1"),
                                                                 new SelectorItem("44", "44"),
                                                             }).Render()
}